<div class="author-box" th:if="user ne null">
    <div class="author">
        <figure class="author-image" th:if="${user ne null}">
            <img th:if="${user ne null and user.icon ne null}" th:src="${user.icon}" alt="">
            <img th:if="${user ne null and user.icon eq null}" src="../../images/icons/icon-1.png" alt="">
        </figure>
        <div class="select-box" th:if="${user ne null}">
            <span class="d-none" id="user-id" th:text="${user ne null ? user.id : ''}"></span>
            <select class="wide" id="userinfo-box" onchange="checkUserInfo()">
                <option th:data-display="${user ne null ? user.name : ''}" th:text="${user ne null ? user.name : ''}" value="login">用户</option>
                <option value="logout">退出登录</option>
            </select>
        </div>
    </div>
</div>